#include <iostream>
#include "DestCtrl.h"

using namespace std;

CDestCtrl::CDestCtrl()
{
}


CDestCtrl::~CDestCtrl()
{
}

bool CDestCtrl::OnConnectToServer()
{
        return true;
}
bool CDestCtrl::Iterate()
{
		double dblX, dblY, dblZ;
		cout<< "Enter new destination X: ";
		cin>> dblX;
		cout<< "Enter new destination Y: ";
        cin>> dblY;
        cout<< "Enter new destination Z: ";
        cin>> dblZ; 
        string strDest;
        strDest = MOOSFormat("x=%f,y=%f,z=%f", dblX, dblY, dblZ);
		this->m_Comms.Notify("Destination", strDest, MOOSTime());
		return true;
}
bool CDestCtrl::OnStartUp()
{
        return true;
}


